package com.baor.controller;

import com.baor.service.SyslogService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@Controller
@RequestMapping("/syslog")
public class SyslogController {
    @Autowired
    private SyslogService syslogService;
    @RequestMapping("/list")
    public AjaxResult<?> list(@RequestBody Map<String,Object> params){
        return this.syslogService.list(params);
    }
    @RequestMapping("/selectOne")
    public AjaxResult<?> selectOne(@RequestBody Map<String,Object> params){
        return  this.syslogService.selectOne(params);
    }
}
